import mongoose from 'mongoose'

const Doc = mongoose.model('Doc')

export const getDoc = async (id) => {
	let query = {}
	query = {
		docId: id
	}

	const doc = await Doc.findOne(query)
	return doc
}